/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package bs.facturacion.web;

import bs.global.util.JsfUtil;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author Claudio
 */
@ManagedBean
@ViewScoped
public class FacturaBean extends MovimientoFacturacionBean implements Serializable{

    /**
     * Creates a new instance of PresupuestoBean
     */
    public FacturaBean(){
        
    }
    
    @PostConstruct
    public void init(){

        try {

            CIRCOM = "0400";
            CIRAPL = "0400";
            MODVT = "VT";
            CODVT = "FC001";
            
            iniciarMovimiento();
                       
            //Valores por defecto
            //aplicarDatosPorDefecto();
            
        } catch (Exception e){
//            e.printStackTrace();
           JsfUtil.addErrorMessage("Error al iniciar el bean " + e.getMessage());
        }
    }
    
}
